﻿using Infrastructure.AggregateBase;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Domain.Model
{
    public class WalletLog : AggregateRoot<WalletLog, int>
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public override int ID { get; set; }
        public Guid Identity { get; set; } = Guid.NewGuid();
        public int UserID { get; set; }
        public int WalletID { get; set; }
        [StringLength(50)]
        public string BizNO { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>
        [StringLength(50)]
        public string BizType { get; set; }
        [StringLength(100)]
        public string BizDesc { get; set; }
        /// <summary>
        /// 历史金额
        /// </summary>
        public int HistoryBlance { get; set; }
        /// <summary>
        /// 金额变化
        /// </summary>
        public int ChangeMoney { get; set; }
        [StringLength(1000)]
        public string Remark { get; set; }
        /// <summary>
        /// 钱包类别
        /// </summary>
        [StringLength(20)]
        public string LogType { get; set; }
        [StringLength(500)]
        public string Data { get; internal set; }
    }
}
